package com.huayue.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.TempOrderDao;
import com.huayue.entity.TempOrder;

/**
 * 临时订单
 */
@Service
public class TempOrderService extends BaseService<TempOrder> {
    @Autowired
    TempOrderDao dao;

    @Override
    public BaseDao<TempOrder> getDao() {
        return dao;
    }

    public Map<String, Object> findTempOrder(Object... obj) {
        return dao.findTempOrder(obj);
    }

    public List<Map<String, Object>> findTempOrderNullRoom(Object... obj) {
        return dao.findTempOrderNullRoom(obj);
    }

    public void updateTempOrder(String order) {
        dao.updateTempOrder(order);
    }

    public Map<String, Object> findPredictOrderId(String order) {
        return dao.findPredictOrderId(order);
    }

    public Map<String, Object> findId(String id) {
        return dao.findId(id);
    }
}
